package com.report.reportserver.mapper;

import com.report.reportserver.model.UserRole;
import org.apache.ibatis.annotations.Select;

public interface UserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    @Select("select role from r_user_role where user=#{name}")
    int selectRoleByName(String name);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);
}